<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>雨幕潇潇-消息提示框</title>
<link rel="stylesheet" type="text/css" href="../css/ymchUI.css">

</head>

<body style="background-color: #000000">

	<div style="position: absolute;top:200px;left:200px">
		<button id="info" class="ymch_btn" onclick="ymcUI_Notify('good','正确');">正确</button>
		<button id="warn" class="ymch_btn" onclick="ymcUI_Notify('bad','错误');">错误</button>
	</div>
	
	<script type="text/javascript" src="../jquery-1.10.1.js"></script>
	<script type="text/javascript" src="../plugins/jquery.notify.js"></script>
	<script type="text/javascript">
		
		function ymcUI_Notify(status, title) {
			var ran = new Date().getTime();
			var top = ran % 300 + 100;
			var left = ran % 500 + 100;
			var position = {//获取随机位置
				left : left,
				top : top
			};

			$.notify({
				modal : false,//是否模态
				status : status,//目前只做了两个状态，成功失败
				position:position//根据时间算出的随机位置
			});
		}
	</script>
</body>
</html>